package com.atguigu.spzx.order.client;

import com.atguigu.spzx.model.entity.order.OrderInfo;
import com.atguigu.spzx.model.vo.common.Result;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author syh
 * @create 2023-09-05 16:44
 */
@FeignClient("service-order")
public interface OrderClient {
    @Operation(summary = "提交订单编号查询订单")
    @GetMapping("api/order/orderInfo/auth/findOrderByOrderNo/{orderNo}")
    public Result<OrderInfo> findOrderByOrderNo(@PathVariable("orderNo")Long orderNo);

    @Operation(summary = "根据订单编号更新订单支付状态")
    @GetMapping("api/order/orderInfo/auth/updateOrderByOrderNo/{orderNo}")
    public Result updateOrderByOrderNo(@PathVariable("orderNo")Long orderNo);

}
